<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加商品</title>
<%-- <script type="text/javascript"
	src="${APP_PATH}/static/js/jquery-2.1.1.min.js"></script> --%>

<link
	href="${ pageContext.request.contextPath }/static/bootstrap-3.3.7-dist/css/bootstrap.min.css"
	rel="stylesheet">
<style type="text/css">
.tabl .tt {
	font-size: 15px;
	font-weight: bold;
}

.tabl {
	height: 460px;
}

.tabl td input {
	height: 30px;
	width: 260px;
	border-radius: 4px;
	font-size: 14px;
}

.tabl .sele {
	height: 36px;
	width: 160px;
	border-radius: 4px;
}
</style>
</head>
<body>
	<div>
		<div class="b" style="float: left; padding-left: 30px;">
			<h2>商品详情</h2>
		</div>
		<div align="right" style="padding-right: 60px; padding-top: 20px;">
			<input class="btn btn-info" type="button"
			onclick="history.go(-1)" value="返回" style="margin-left: 700px;"
			align="right" />
		</div>
	</div>

	<!-- <h2>
		&nbsp;&nbsp;&nbsp;&nbsp;商品详情<input class="btn btn-info" type="button"
			onclick="history.go(-1)" value="返回" style="margin-left: 800px;"
			align="right" />
	</h2> -->
	<hr
		style="height: 1px; border: none; border-top: 1px solid #555555; width: 95%" />
	<div style="margin-left: 100px; margin-bottom: 20px;" class="formm">
		<table class="tabl">
			<tr height="">
				<td class="tt">商品名称：</td>
				<td width="20"></td>
				<td><strong><font>${findByPid.pname}</font></strong></td>
			</tr>
			<tr height="">
				<td class="tt">是否热门：</td>
				<td width="20"></td>
				<td><select name="isHot" class="sele" disabled="disabled">
						<c:if test="${findByPid.isHot==1}">
							<option value="1" selected>是</option>
							<option value="0">否</option>
						</c:if>
						<c:if test="${findByPid.isHot==0}">
							<option value="1">是</option>
							<option value="0" selected>否</option>
						</c:if>
				</select></td>
			</tr>
			<tr height="">
				<td class="tt">市场价格：</td>
				<td width="20"></td>
				<td><strong><font>${findByPid.marketPrice}</font></strong></td>
			</tr>
			<tr height="">
				<td class="tt">商城价格：</td>
				<td width="20"></td>
				<td><strong><font>${findByPid.shopPrice}</font></strong></td>
			</tr>
			<tr height="">
				<td class="tt">商品图片：</td>
				<td width="20"></td>
				<td><img src="../${findByPid.image}" width="100px"
					height="100px" /></td>

			</tr>
			<tr height="">
				<td class="tt">所属二级分类：</td>
				<td width="20"></td>
				<td><select name="csid" disabled="disabled" class="sele">
						<c:forEach items="${cslist}" var="cs">
							<c:if test="${cs.csid == findByPid.csid}">
								<option value="${cs.csid}" selected>${cs.csname}</option>
							</c:if>
							<c:if test="${cs.csid != findByPid.csid}">
								<option value="${cs.csid}">${cs.csname}</option>
							</c:if>
						</c:forEach>
				</select></td>
			</tr>
			<tr height="">
				<td class="tt">商品描述：</td>
				<td width="20"></td>
				<td><strong><font>${findByPid.pdesc}</font></strong></td>
			</tr>

		</table>
	</div>
</body>
</html>

